<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<jsp:include page = "../../metadatosPopUp.jsp" flush = "True" />
<html>
    <head>
        <title>CONCEPTO</title>
    </head>
    <body>
        <div class="wrapper">
            <header class="header">
            </header><!-- .header-->
            <!-- .Navigation Menu -->
            <main class="content">
                <div class="grid-12-12">
                    <form method="post" action="./Compras?action=nuevoConceptoCompraRequest">
                        <fieldset class="formee">
                            <legend>Conceptos</legend>
                            <c:if test="${principalCompras.nErrores>0}">
                                <div class="formee-msg-error">
                                    <h3>Incidencias:</h3>
                                    <ul>
                                        <c:forEach items="${principalCompras.errores}" var="e">
                                            <li><c:out value="${e}"/></li>
                                            </c:forEach>
                                    </ul>
                                </div> 
                            </c:if>
                            <input type="hidden" name="folioApuntador" value="<c:out value="${principalCompras.folioOrdenCompraApuntador}"/>"/>
                            <div class="grid-12-12">
                                <label>Descripcion Concepto<em class="formee-req">*</em></label>
                                <textarea name="concepto" onKeyup="this.value = txtalfanum(this.value)"></textarea>
                            </div>
                            <div class="grid-12-12">
                                <label>Unidad Medida<em class="formee-req">*</em></label>
                                <select name="um">
                                    <option value="0">seleccione unidad de medida</option>
                                    <c:forEach items="${principalCompras.unidadesMedida}" var="u">
                                        <option value="<c:out value="${u.id}"/>"> <c:out value="${u.abreviatura}"/> -- <c:out value="${u.descripcion}"/> </option>
                                    </c:forEach>
                                </select>
                            </div>
                            <div class="grid-4-12">
                                <label>Cantidad<em class="formee-req">*</em></label>
                                <input type="text" name="cantidad" onKeyup="this.value = vdoble(this.value)" />
                            </div>
                            <div class="grid-4-12">
                                <label>Precio Unitario<em class="formee-req">*</em></label>
                                <input type="text" name="pu" onKeyup="this.value = vdoble(this.value)" />
                            </div>
                            <div class="grid-4-12">
                                <label>TAZA DE IVA CONCEPTO<em class="formee-req">*</em></label>
                                <select name="iva">
                                    <option value="0">SELEECIONE</option>
                                    <option value="1">I.V.A. Al  0 %</option>
                                    <option value="2">I.V.A. Al 16 %</option>
                                </select>
                            </div>
                            <div class="grid-3-12">
                                <input type="submit" value="guardar" />
                            </div>
                        </fieldset>
                    </form>
                </div>
            </main>
        </div>
    </body>
</html>
